#ifndef __PHASER__
#define __PHASER__
#include "MCUVardefine.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>



//#define USE_PHASER

#ifdef USE_PHASER
#define FUN_NAN 0
#define STR_WRA "WRA"
#define WRA 1
#define STR_WRB "WRB"
#define WRB 2
#define STR_WRC "WRC"
#define WRC 3
#define STR_WRD "WRD"
#define WRD 4

#define STR_RDA "RDA"
#define RDA 5
#define STR_RDB "RDB"
#define RDB 6
#define STR_RDC "RDC"
#define RDC 7
#define STR_RDD "RDD"
#define RDD 8

#define STR_ADC "ADC"
#define ADC 9
#define STR_BUZ "BUZ"
#define BUZ 10

#define STR_RST "RST"
#define RST 11

#define STR_WA "WA"
#define WA 12

#define STR_WB "WB"
#define WB 13

#define STR_WC "WC"
#define WC 14

#define STR_WD "WD"
#define WD 15

#define ADC1 16


extern char RxBuffer[];
extern char TxBuffer[];



extern void Phaser(void);

extern void SetRxBuffer(char _ch);

#if 1
extern char GetSendBuffer(void);

extern u8 SetSendBuffer(char *strdata);
#endif


extern u8 GetCurRxBufferTail(void);

extern void ResetRxIndex(void);

extern char GetRxBufferLen(void );




#endif

#endif

